import Vue from 'vue'
import Router from 'vue-router'
import Login from './views/Login.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  // base: process.env.BASE_URL,
  base: '',
  routes: [
    {
      path: '/',
      redirect: '/todoMVC'
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/todoMVC',
      name: 'todoMVC',
      component: () => import('./views/TodoMVC.vue')
    }
  ]
})
